package com.lu.design.principle.singleresponsibility;

public class Method {

    private void updateUserInfo(String username, String address, boolean bool) {
        if (bool) {
            // todo something1
        } else {
            // todo something2
        }
        username = "xuchang";
        address = "shanghai";
    }

    private void updateUserInfo(String username, String... properties) {
        username = "xuchang";
//        address = "shanghai";
    }

    private void updateUsername(String username) {
        username = "xuchang";
    }

    private void updateUserAddress(String address) {
        address = "shanghai";
    }
}
